JavaScript

A5.chartDefinition Location Object

Description

The definition of a chart location.

Discussion

Elements can be placed on the chart by using a location definition. This definition is used to position elements on the chart (see A5.chart.u.layout.position). The position will be calculated relative to the plot area of the chart (e.g. the area left over after the "output.render.offset" has been taken into account - see A5.chart.generate).

The location definition object can be simplified to a string with one or more of the following values "center", "top", "left", "right" and "bottom". For example, a value of "top left" would place the element in the top left corner of the plot area, and would be equivalent to an object "{top: 0, left: 0}".

Properties

topnumberstringfunction(data,temp)

The "top" of the element relative to the plot area of the chart. Can be specified as a CSS length unit string, for instance "33%" or "1in". A function can be used to dynamically calculate the result (see A5.chart Render Data Object).

bottomnumberstringfunction(data,temp)

The "bottom" of the element relative to the plot area of the chart. Can be specified as a CSS length unit string, for instance "33%" or "1in". A function can be used to dynamically calculate the result (see A5.chart Render Data Object).

leftnumberstringfunction(data,temp)

The "left" of the element relative to the plot area of the chart. Can be specified as a CSS length unit string, for instance "33%" or "1in". A function can be used to dynamically calculate the result (see A5.chart Render Data Object).

rightnumberstringfunction(data,temp)

The "right" of the element relative to the plot area of the chart. Can be specified as a CSS length unit string, for instance "33%" or "1in". A function can be used to dynamically calculate the result (see A5.chart Render Data Object).

valueanyfunction(data,temp)

If the chart type if "linear" or "radial", then the "value" at which to place the text. String values of "base", "min" and "max" can be used to place the element on that value on the axis. A function can be used to dynamically calculate the result (see A5.chart Render Data Object).

xanyfunction(data,temp)

If the chart type if "rect", then the "x" axis value at which to place the text. String values of "base", "min" and "max" can be used to place the element on that value on the axis. A function can be used to dynamically calculate the result (see A5.chart Render Data Object).

yanyfunction(data,temp)

If the chart type if "rect", then the "x" axis value at which to place the text. String values of "base", "min" and "max" can be used to place the element on that value on the axis. A function can be used to dynamically calculate the result (see A5.chart Render Data Object).

angleanyfunction(data,temp)

If the chart type if "polar", then the "angle" axis value at which to place the text. String values of "base", "min" and "max" can be used to place the element on that value on the axis. A function can be used to dynamically calculate the result (see A5.chart Render Data Object).

distanceanyfunction(data,temp)

If the chart type if "polar", then the "distance" axis value at which to place the text. String values of "base", "min" and "max" can be used to place the element on that value on the axis. A function can be used to dynamically calculate the result (see A5.chart Render Data Object).